#ifndef QSTATISTIC_H
#define QSTATISTIC_H

#include <QGraphicsScene>
#include <QMap>

class QGame;
class QStatisticGraph;


/**
	@author Stefan Weigert <stefan.weigert@mailbox.tu-dresden.de>
*/
class QStatistic : public QGraphicsScene
{
		Q_OBJECT

	public:
		QStatistic ( int width, int height, QObject* parent = 0 );
		int addGraph ( QStatisticGraph* graph );
		void pushPoint ( int graphId, QPointF point );
		void reset();

	public slots:
		void drawAntialiased ( bool aa );
		void stepAdvance();

	private:
		bool aa;
		int graphCount;
		int stepCount;

		QMap<long, QStatisticGraph*> graphMap;

		QGraphicsRectItem* dimRect;
		QGraphicsLineItem* timeLine;
};

#endif
